package com.itwill.ecom.cart;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

public interface CartDao {

	public final static String namespace = "com.itwill.ecom.cart";

	/*********** Custom jUnit ***********/
	public abstract int getCount()throws Exception;
	
	public abstract void deleteAll()throws Exception;
	/******************************/
	
	/** Basic CRUD **/
	//CartBeans 생성
	public abstract void createCart(CartBeans cartBeans) throws Exception;

	//CartBeans 찾기
	public abstract CartBeans getCart(int cart_no)throws Exception;

	//CartBeans 수정
	public abstract void updateCart(CartBeans cartBeans)throws Exception;

	//CartBeans 삭제
	public abstract void deleteCart(int cartBeans)throws Exception;

	/** Custom CRUD **/
	//멤버번호로 카트리스트 찾기
	public abstract List<CartBeans> getCartListByMemberNo(int no)throws Exception;

	//물품번호로 카트리스트 찾기
	public abstract List<CartBeans> getCartListByProductNo(int no)throws Exception;
	
	//물품리스트 가져오기
	public abstract List<CartBeans> getCartListAll()throws Exception;
	
	//멤버번호로 카트리스트 삭제 [장바구니비우기]
	public abstract void deleteCartListByMemberNo(int no)throws Exception;
}